﻿using System;

namespace ServicesDirectory.UserControl
{
    public partial class PremiseDetail2 : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            ListContact1.CloseControl += ListContact1_CloseControl;
        }

        private void ListContact1_CloseControl(object sender, EventArgs e)
        {
            pnLookupContact.Visible = false;
        }

        protected void LbtLookupContact_Click(object sender, EventArgs e)
        {
            pnLookupContact.Visible = true;
        }

        protected void CheckBox1_CheckedChanged(object sender, EventArgs e)
        {
            LbtLookupContact1.Enabled = CheckBox1.Checked;
        }

        protected void CheckBox2_CheckedChanged(object sender, EventArgs e)
        {
            LbtLookupContact2.Enabled = CheckBox2.Checked;
        }

        protected void CheckBox3_CheckedChanged(object sender, EventArgs e)
        {
            TxtClientITFacilities.Enabled = CheckBox3.Checked;
        }
    }
}